package com.leizhi.demo.monitor.pojo;

import lombok.Data;

import javax.sip.Dialog;

/**
 * @Description 推流通道信息
 * @Version 1.0.0-SNAPSHOT
 * @Author leizhi
 * @Date 2025/4/27 10:24
 */
@Data
public class PushStreamInfo {

    /* 通道编号 */
    private final Long ssrc;

    /* sip callId */
    private final String callId;

    /* 通道名称 */
    private final String streamName;

    /* 传输协议 */
    private final String protocol;

    /* 拉流地址 */
    private final String pullStreamAddress;

    /* sip 对话 */
    private Dialog dialog;

    /* 是否正在推流 */
    private Boolean isPushStream;


    public PushStreamInfo(Long ssrc, String callId, String streamName, String protocol, String pullStreamAddress) {
        this.ssrc = ssrc;
        this.callId = callId;
        this.streamName = streamName;
        this.protocol = protocol;
        this.pullStreamAddress = pullStreamAddress;
        this.isPushStream = false;
    }

}
